<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="">商会介绍</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form margin-top-20" method="post" action="{:url('introduce/set')}">
			<div class="form-group">
				<label class="col-sm-2 control-label">图片</label>
				<div class="col-md-6 col-sm-10">
					<input type="hidden" name="image" id="thumb" value="{$row.image|default=''}">
                    <a href="javascript:uploadOneImage('图片上传','#thumb');">
                        <if condition="empty($row['image'])">
                            <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                 id="thumb-preview" width="135" style="cursor: hand"/>
                            <else/>
                            <img src="{:cmf_get_image_preview_url($row['image'])}" id="thumb-preview"
                                 width="135" style="cursor: hand"/>
                        </if>
                    </a>
                    <input type="button" class="btn btn-sm" onclick="$('#thumb-preview').attr('src','__TMPL__/public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;" value="取消图片">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">内容</label>
				<div class="col-md-6 col-sm-10">
					<textarea class="form-control" name="content" style="height: 150px;">{$row.content|default=''}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">视频</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" id="js-video-input" type="text" name="video" value="{$row.video|default=''}" style="width: 300px;display: inline-block;" title="文件名称">
                    <a href="javascript:uploadOne('文件上传','#js-video-input','video');">上传文件</a>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">地址</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" name="address" value="{$row.address|default=''}" style="width: 300px;display: inline-block;">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">电话</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" name="telephone" value="{$row.telephone|default=''}" style="width: 300px;display: inline-block;">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>